package com.yuwj.chinaa.adapter;

import android.content.Context;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.yuwj.chinaa.R;
import com.yuwj.chinaa.entity.EntityAssetDetailRecord;

import java.util.List;

/**
 * asset流水记录 adapter
 */
public class AssetDetailRecordAdapter extends BaseQuickAdapter<EntityAssetDetailRecord, BaseViewHolder> {
    Context context;

    public AssetDetailRecordAdapter(Context context, List<EntityAssetDetailRecord> datas) {
        super(R.layout.item_asset_detail_record, datas);
        this.context = context;
    }

    @Override
    protected void convert(BaseViewHolder holder, final EntityAssetDetailRecord item) {
        holder.setText(R.id.tv_category, item.getCategory() + "");
        holder.setText(R.id.tv_date, item.getDate() + "");
        holder.setText(R.id.tv_profit, item.getProfit() + "");
    }

}
